<?php
/**
 * 文件管理器
 * @yeshili        作者:叶世立  email:ye-shi-li@qq.com 
 * @version        $Id:file_class.php 1 19:09 2010年7月12日Z xiaoye $
 * @package        yeshiliCMS.Administrator 
 * @copyright      Copyright (c) 2013 - 2020, yeshiliCMS, Inc.
 */
require(dirname(__FILE__)."/config.php");
if(!isset($activepath)) $activepath=$cfg_cmspath;

$inpath = "";
$activepath = iconv('utf-8','gb2312',$activepath);
$activepath = str_replace("..", "", $activepath);
$activepath = preg_replace("#^\/{1,}#", "/", $activepath);
if($activepath == "/") $activepath = "";

if($activepath == "") $inpath = $cfg_basedir;
else $inpath = $cfg_basedir.$activepath;

$activeurl = $activepath;
if(preg_match("#".$cfg_templets_dir."#i", $activepath))
{
    $istemplets = TRUE;
}
else
{
    $istemplets = FALSE;
}
include DedeInclude('templets/file_manage_main.htm');